package com.abc.base.spark.rpc.impl;

import com.abc.base.common.model.HouseInfo;
import com.abc.base.common.response.Result;
import com.abc.base.spark.rpc.SparkRpc;
import org.springframework.stereotype.Service;
import com.abc.base.spark.api.ProcessingData;

import java.util.List;


@Service
public class SparkRpcImpl implements SparkRpc {
    @Override
    public Result<List<HouseInfo>> processData() {
        ProcessingData processingData = new ProcessingData();
        List<HouseInfo> houseInfoList = processingData.processingData();
        return Result.success(houseInfoList);
    }
}
